package com.zf.yichat.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "user_invite")
public class UserInvite implements Serializable {
    @Id
    private Long id;

    /**
     * 获得奖励
     */
    private BigDecimal money;

    /**
     * 0 进行中 1完成
     */
    private Integer status;

    /**
     * 推荐人id
     */
    @Column(name = "refer_id")
    private Long referId;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Long userId;

    private Date ctime;

    private static final long serialVersionUID = 1L;

    public UserInvite(Long id, BigDecimal money, Integer status, Long referId, Long userId, Date ctime) {
        this.id = id;
        this.money = money;
        this.status = status;
        this.referId = referId;
        this.userId = userId;
        this.ctime = ctime;
    }

    public UserInvite() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取获得奖励
     *
     * @return money - 获得奖励
     */
    public BigDecimal getMoney() {
        return money;
    }

    /**
     * 设置获得奖励
     *
     * @param money 获得奖励
     */
    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /**
     * 获取0 进行中 1完成
     *
     * @return status - 0 进行中 1完成
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置0 进行中 1完成
     *
     * @param status 0 进行中 1完成
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取推荐人id
     *
     * @return refer_id - 推荐人id
     */
    public Long getReferId() {
        return referId;
    }

    /**
     * 设置推荐人id
     *
     * @param referId 推荐人id
     */
    public void setReferId(Long referId) {
        this.referId = referId;
    }

    /**
     * 获取用户ID
     *
     * @return user_id - 用户ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置用户ID
     *
     * @param userId 用户ID
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * @return ctime
     */
    public Date getCtime() {
        return ctime;
    }

    /**
     * @param ctime
     */
    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }
}